<?php
	require_once('helper/RelexDB.php');

	$db = new RelexDB();
?>

<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8' />
<title>Relex Demo Law</title>
<link rel="stylesheet" href="style.css" />
<script src="localnote.js"></script>
</head>
<body>
<h1>Relex Demo Burgerlijk Wetboek</h1>
<p>
Click to add a note. <br />
If your browser is HTML5-enabled, the note will be stored locally.
</p>

<?php
	$law = $db->getLaw(1, 'nl', '2014-01-24');
	
	while ($row = $law->fetch()) {
		print '<section id="' . $row['id'] . '">' . "\n";
		print '<span class="partno">' . $row['partno'] . '</span>' . "\n";
		print $row['body'];
		print '</section>' . "\n";
	} 
?>

</body>
</html>

